package com.ysstech.dataway;


import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import com.ysstech.common.util.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.web.servlet.MultipartAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 数据处理
 */
@MapperScan({"com.ysstech.dataway.mapper", "com.ysstech.common.mapper"})
@EnableCircuitBreaker
@EnableFeignClients
@EnableTransactionManagement
@SpringBootApplication(exclude = {MultipartAutoConfiguration.class, DruidDataSourceAutoConfigure.class})
public class DatawayApplication {
    public static void main(String[] args) {


        ApplicationContext applicationContext = SpringApplication.run(DatawayApplication.class, args);
        new SpringContextUtil().setApplicationContext(applicationContext);
    }

}
